#!/bin/bash

#必须是root用户才可以执行
if [ $UID -ne 0 ]; then
    echo "Superuser privileges are required to run this script."
    echo "e.g. \"sudo $0\""
    exit 1
fi

yum -y install mariadb-server
systemctl enable mariadb
systemctl restart mariadb